package site.ruyi.devclient.client.dubbo.impl.DO;

import site.ruyi.devclient.client.dubbo.DubboTreeNode;

/**
 * 根节点
 * @author self
 *
 */
public class DubboRootTreeNode extends DubboTreeNode {

	/**
	 * 主机名或IP地址
	 */
	private String host;
	
	/**
	 * 端口
	 */
	private int port;
		
	public DubboRootTreeNode(String host,int port) {
		this.host = host;
		this.port = port;
		
		this.setText(host+":"+port);
		this.setLeaf(false);
	}
	
	public String getHost() {
		return host;
	}
	
	public int getPort() {
		return port;
	}
}
